package com.example.controller;

import com.example.config.ResponseVO;
import com.example.pojo.TogetherPerson;
import com.example.service.TogetherPersonService;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class TogetherPersonController {
    @Resource
    private TogetherPersonService togetherPersonService;

    @PostMapping("/notToken/addTogetherPerson")
    public ResponseEntity<ResponseVO<String>> addTogetherPerson(@RequestBody TogetherPerson togetherPerson){
        System.out.println(togetherPerson);
        return togetherPersonService.addTogetherPerson(togetherPerson);
    }
}
